import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-ng-switch',
  templateUrl: './ng-switch.component.html',
  styleUrls: ['./ng-switch.component.scss']
})
export class NgSwitchComponent implements OnInit {
  name:string = "taobao";
  constructor() { }

  ngOnInit() {
  }

  click(){
    if(this.name === "taobao"){
      this.name = "alipay";
    }else if(this.name === "alipay"){
      this.name = "dingtalk";
    }else if(this.name === "dingtalk"){
      this.name = "help_filled";
    }else{
      this.name = "taobao";
    }
  }
}
